package top.college.jjb;

import java.awt.BorderLayout;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.BoxLayout;
// 학생 정보 조회
public class student extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_5;

	public student() {
		StudentsVO sv = new  StudentsVO();
		JTextField jt = new JTextField();
		sv.setStd_no(jt.getText());
		sv.getStd_no();
		sv.setStd_name(jt.getText());
		sv.getStd_name();
		sv.setStd_pw(jt.getText());
		sv.getStd_pw();
		sv.setStd_tel(jt.getText());
		sv.getStd_tel();
		sv.setStd_addr(jt.getText());
		sv.getStd_addr();
		uptop();
		upcenter();
		updown();
		
	}


private void uptop(){
	new JPanel();
	setLayout(new BorderLayout(0, 0));
	JPanel infop = new JPanel();
	add(infop, BorderLayout.NORTH);
	
	JLabel infolab = new JLabel("학생 정보 조회");
	infop.add(infolab);
}
private void upcenter(){
}
private void updown(){
	
	JPanel panel = new JPanel();
	add(panel, BorderLayout.WEST);
	panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));
	
	JLabel lblNewLabel = new JLabel("학번");
	panel.add(lblNewLabel);
	
	JLabel label = new JLabel("이름");
	label.setAlignmentY(1.0f);
	panel.add(label);
	
	JLabel label_1 = new JLabel("패스워드");
	label_1.setAlignmentY(1.0f);
	panel.add(label_1);
	
	JLabel label_2 = new JLabel("전화번호");
	panel.add(label_2);
	
	JLabel lblNewLabel_1 = new JLabel("주소");
	panel.add(lblNewLabel_1);
	
	JPanel panel_1 = new JPanel();
	panel_1.setPreferredSize(new Dimension(200, 10));
	add(panel_1, BorderLayout.EAST);
	
	JPanel panel_2 = new JPanel();
	add(panel_2, BorderLayout.CENTER);
	
	textField = new JTextField();
	textField.setEditable(false);
	textField.setColumns(10);
	panel_2.add(textField);
	
	textField_1 = new JTextField();
	textField_1.setEditable(false);
	textField_1.setColumns(10);
	panel_2.add(textField_1);
	
	textField_2 = new JTextField();
	textField_2.setEditable(false);
	textField_2.setColumns(10);
	panel_2.add(textField_2);
	
	textField_3 = new JTextField();
	textField_3.setEditable(false);
	textField_3.setColumns(10);
	panel_2.add(textField_3);
	
	textField_5 = new JTextField();
	textField_5.setEditable(false);
	panel_2.add(textField_5);
	textField_5.setColumns(10);
	
	JPanel panel_3 = new JPanel();
	add(panel_3, BorderLayout.SOUTH);
	
	JButton btnNewButton = new JButton("확인");
	panel_3.add(btnNewButton);
}

}
